<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>


<!-- <h4>分类标题</h4> -->
	    <div class="row">
	      <div class="col-md-12 layout-header">
	        <button id="addBtn_HgRdr3" type="button" class="btn btn-default"><t:mutiLang langKey="common.add"/></button>
	        <button id="delBtn_HgRdr3" type="button" class="btn btn-default"><t:mutiLang langKey="common.delete"/></button>
	        <script type="text/javascript"> 
			$('#addBtn_HgRdr3').bind('click', function(){   
		 		 var tr =  $("#add_hgRdr3_table_template tr").clone();
			 	 $("#add_hgRdr3_table").append(tr);
			 	 resetTrNum('add_hgRdr3_table');
			 	 return false;
		    });  
			$('#delBtn_HgRdr3').bind('click', function(){   
		       $("#add_hgRdr3_table").find("input:checked").parent().parent().remove();   
		        resetTrNum('add_hgRdr3_table');
		        return false;
		    });
		    $(document).ready(function(){
		    	if(location.href.indexOf("load=detail")!=-1){
					$(":input").attr("disabled","true");
					$(".datagrid-toolbar").hide();
				}
		    	resetTrNum('add_hgRdr3_table');
		    });
		</script>
	      </div>
	    </div>
<div style="margin: 0 15px; background-color: white;">    
	    <!-- Table -->
      <table id="hgRdr3_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
		<thead>
	      <tr>
	        <th style="white-space:nowrap;width:50px;"><t:mutiLang langKey="sequence.name"/></th>
	        <th style="white-space:nowrap;width:50px;"><t:mutiLang langKey="common.operate"/></th>
					  <th>
						  <t:mutiLang langKey="hg.x38"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.x39"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.x40"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.x41"/>
					  </th>
			  <th>
				  <t:mutiLang langKey="hg.x42"/>
			  </th>
			  <th>
				  <t:mutiLang langKey="hg.x43"/>
			  </th>
			  <th>
				  <t:mutiLang langKey="hg.x44"/>
			  </th>
			  <th>
				  <t:mutiLang langKey="hg.x45"/>
			  </th>
	      </tr>
	    </thead>
        
	<tbody id="add_hgRdr3_table">	
	<c:if test="${fn:length(hgRdr3List)  <= 0 }">
			<tr>
				<th scope="row"><div name="xh"></div></th>
				<td><input style="width:20px;" type="checkbox" name="ck"/></td>
					<input name="hgRdr3List[0].id" type="hidden"/>
					<input name="hgRdr3List[0].createName" type="hidden"/>
					<input name="hgRdr3List[0].createBy" type="hidden"/>
					<input name="hgRdr3List[0].createDate" type="hidden"/>
					<input name="hgRdr3List[0].updateName" type="hidden"/>
					<input name="hgRdr3List[0].updateBy" type="hidden"/>
					<input name="hgRdr3List[0].updateDate" type="hidden"/>
					<input name="hgRdr3List[0].sysOrgCode" type="hidden"/>
					<input name="hgRdr3List[0].sysCompanyCode" type="hidden"/>
					<input name="hgRdr3List[0].bpmStatus" type="hidden"/>
					<input name="hgRdr3List[0].docentry" type="hidden"/>
					<input name="hgRdr3List[0].linenum" type="hidden"/>
				  <td  >

					  <%--<t:webUploader name="filename0" bizType="photosucai" auto="true" extensions="doc,txt,jpg,*" pathValues="${filename0}" buttonStyle="btn-green btn-L" ></t:webUploader>--%>

					  <input type="hidden" id="hgRdr3List[0].filename" name="hgRdr3List[0].filename" />
									   <input class="btn btn-sm btn-success" style="margin-left:10px;" type="button" value="上传附件"
													onclick="commonUpload(commonUploadDefaultCallBack,'hgRdr3List\\[0\\]\\.filename','hgRdr3List\\[0\\]\\.fname')"/>
					 					<a  target="_blank" id="hgRdr3List[0].filename_href"></a>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x38"/></label>
					</td>
				  <td>
					  	<input id="hgRdr3List[0].fname" name="hgRdr3List[0].fname" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x39"/></label>
					</td>
				  <td>
					  	<input name="hgRdr3List[0].by1" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x40"/></label>
					</td>
				  <td>
					  	<input name="hgRdr3List[0].by2" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x41"/></label>
					</td>
				<td align="left">
					<input name="hgRdr3List[0].by3" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"   />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x42"/></label>
				</td>
				<td align="left">
					<input name="hgRdr3List[0].by4" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x43"/></label>
				</td>
				<td align="left">
					<input name="hgRdr3List[0].by5" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"   />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x44"/></label>
				</td>
				<td align="left">
					<input name="hgRdr3List[0].by6" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x45"/></label>
				</td>
   			</tr>

	</c:if>
	<c:if test="${fn:length(hgRdr3List)  > 0 }">
		<c:forEach items="${hgRdr3List}" var="poVal" varStatus="stuts">
			<tr>
				<th scope="row"><div name="xh">${stuts.index+1 }</div></th>
				<td><input style="width:20px;" type="checkbox" name="ck"/></td>
					<input name="hgRdr3List[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
					<input name="hgRdr3List[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
					<input name="hgRdr3List[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
					<input name="hgRdr3List[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
					<input name="hgRdr3List[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
					<input name="hgRdr3List[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
					<input name="hgRdr3List[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
					<input name="hgRdr3List[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
					<input name="hgRdr3List[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
					<input name="hgRdr3List[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
					<input name="hgRdr3List[${stuts.index }].docentry" type="hidden" value="${poVal.docentry }"/>
					<input name="hgRdr3List[${stuts.index }].linenum" type="hidden" value="${poVal.linenum }"/>
				   <td align="left">
					   <%--<t:webUploader name="hgRdr3List[${stuts.index }].filename" bizType="photosucai" auto="true" extensions="doc,txt,jpg,*" buttonStyle="btn-green btn-L" ></t:webUploader>--%>

				   <input type="hidden" id="hgRdr3List[${stuts.index }].filename" name="hgRdr3List[${stuts.index }].filename"  value="${poVal.filename }" />
						   <input  class="btn btn-sm btn-success" style="margin-left:10px;" type="button" value="上传附件" onclick="commonUpload(commonUploadDefaultCallBack,'hgRdr3List\\[${stuts.index }\\]\\.filename','hgRdr3List\\[${stuts.index }\\]\\.fname')" />
					   		<c:if test="${empty poVal.filename}">
								<a  target="_blank" id="hgRdr3List[${stuts.index }].filename_href"></a>
							</c:if>
							<c:if test="${!empty poVal.filename}">
								<a  href="${poVal.filename}"  target="_blank" id="hgRdr3List[${stuts.index }].filename_href">下载</a>
							</c:if>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x38"/></label>
				   </td>
				   <td align="left">
					  	<input id="hgRdr3List[${stuts.index }].fname" name="hgRdr3List[${stuts.index }].fname" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.fname }" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x39"/></label>
				   </td>
				   <td align="left">
					  	<input name="hgRdr3List[${stuts.index }].by1" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by1 }" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x40"/></label>
				   </td>
				   <td align="left">
					  	<input name="hgRdr3List[${stuts.index }].by2" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by2 }" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x41"/></label>
				   </td>
				<td align="left">
					<input name="hgRdr3List[${stuts.index }].by3" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by3 }" />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x42"/></label>
				</td>
				<td align="left">
					<input name="hgRdr3List[${stuts.index }].by4" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by4 }" />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x43"/></label>
				</td>
				<td align="left">
					<input name="hgRdr3List[${stuts.index }].by5" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by5 }" />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x44"/></label>
				</td>
				<td align="left">
					<input name="hgRdr3List[${stuts.index }].by6" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by6 }" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x45"/></label>
				</td>
   			</tr>
		</c:forEach>
	</c:if>
	</tbody>
</table>
